package myApp.mobile;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.TextView;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import myApp.classi.Connection;

public class Ppage extends Activity
{
  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903046);
    Connection localConnection = new Connection();
    TextView localTextView1 = (TextView)findViewById(2131165210);
    TextView localTextView2 = (TextView)findViewById(2131165211);
    TextView localTextView3 = (TextView)findViewById(2131165212);
    TextView localTextView4 = (TextView)findViewById(2131165213);
    TextView localTextView5 = (TextView)findViewById(2131165214);
    TextView localTextView6 = (TextView)findViewById(2131165215);
    String str = "wrong";
    try
    {
      File localFile1 = Environment.getExternalStorageDirectory();
      if (localFile1.canWrite())
      {
        File localFile2 = new File(localFile1, "mBusData.txt");
        FileReader localFileReader = new FileReader(localFile2);
        BufferedReader localBufferedReader = new BufferedReader(localFileReader);
        str = localBufferedReader.readLine();
        str = str.split("!i!")[0];
        localBufferedReader.close();
      }
      double d = Math.floor(100.0D * Double.parseDouble(localConnection.getBalance(str))) / 100.0D;
      localTextView1.setText(localConnection.getName(str));
      localTextView2.setText(localConnection.getSurame(str));
      localTextView3.setText(localConnection.getNick(str));
      localTextView4.setText(localConnection.getMail(str));
      localTextView5.setText(String.valueOf(d) + " €");
      localTextView6.setText(localConnection.getCategory(str));
      return;
    }
    catch (IOException localIOException)
    {
      while (true)
        Log.e("SD", "Could not read file " + localIOException.getMessage());
    }
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    super.onCreateOptionsMenu(paramMenu);
    getMenuInflater().inflate(2131099651, paramMenu);
    return true;
  }

  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    switch (paramMenuItem.getItemId())
    {
    case 2131165222:
    case 2131165224:
    default:
    case 2131165221:
    case 2131165223:
    case 2131165225:
    }
    while (true)
    {
      return true;
      Intent localIntent3 = new Intent();
      localIntent3.setClass(this, Home.class);
      startActivity(localIntent3);
      continue;
      Intent localIntent2 = new Intent();
      localIntent2.setClass(this, Option.class);
      startActivity(localIntent2);
      continue;
      Intent localIntent1 = new Intent();
      localIntent1.setClass(this, History.class);
      startActivity(localIntent1);
    }
  }
}

/* Location:           C:\Users\Spider22\Desktop\TesiMBUS\classes_dex2jar.jar
 * Qualified Name:     myApp.mobile.Ppage
 * JD-Core Version:    0.6.1
 */